<?php

require_once('resources/class/private/webos.php');

$appID = Jpublic::get('appid');

$webos = new webosClass();

$config = $webos -> get_application_config($appID);

while ($dr = mysql_fetch_array($config)) {
	
	$configValue = preg_replace('/(.*)&{1}(.*)/i', '$1&amp;$2', $dr['configValue']);

	$add .= "<add key=\"$dr[configKey]\" value=\"$configValue\"></add>";
	
}

header("Content-type: text/xml");

?>
<applicationConfig>
	<?php echo $add;?>
</applicationConfig>